Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CE-1047 'Select office' field on admin screen includes multiples of offices not found within the organization selected #664

Merged
merged 6 commits into from
Sep 27, 2024

Conversation

marqueone-ps
Copy link
Contributor

@marqueone-ps marqueone-ps commented Sep 26, 2024

Description

Currently in the user management when selecting an office to apply a user all offices are presented to the user irregardless of the agency selected.

Fixes # CE-1047

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Manual testing

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Copy link
Collaborator

@afwilcox afwilcox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but I think it's only a partial fix, looking at the test data and scripts the office table should have a UK on agency_code and geo_organization_unit_code to prevent multiple rows being entered.

image

You'll have to write a very careful datafix that removes all the extras except one that will be run before the UK. I'd put it all in a V script.

Copy link

sonarcloud bot commented Sep 27, 2024

Copy link
Collaborator

@afwilcox afwilcox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will create a backlog bug for missing UK constraint

@afwilcox afwilcox merged commit aedce24 into release/orca Sep 27, 2024
15 checks passed
@afwilcox afwilcox deleted the bug/CE-1047 branch September 27, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants